package com.xmb.wechat.bean;

import android.text.TextUtils;

import java.io.Serializable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

/**
 * @Author lijiangop
 * @CreateTime 2020/5/12 09:52
 */
@Entity
public class PYQCommentsBean implements Serializable {
    @Id
    private long id;
    int    type;//0：评论  1：回复
    String commenter;
    String commenteder;
    String commentValue;

    public PYQCommentsBean() {
    }

    public PYQCommentsBean(long id, int type, String commenter, String commenteder, String commentValue) {
        this.id = id;
        this.type = type;
        this.commenter = commenter;
        this.commenteder = commenteder;
        this.commentValue = commentValue;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getCommenter() {
        return commenter;
    }

    public void setCommenter(String commenter) {
        this.commenter = commenter;
    }

    public String getCommenteder() {
        return commenteder;
    }

    public void setCommenteder(String commenteder) {
        this.commenteder = commenteder;
    }

    public String getCommentValue() {
        return commentValue;
    }

    public void setCommentValue(String commentValue) {
        this.commentValue = commentValue;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof PYQCommentsBean) {
            PYQCommentsBean entity = (PYQCommentsBean) o;
            return type == entity.type && TextUtils.equals(commenter, entity.commenter) && TextUtils.equals(commenteder, entity.commenteder) && TextUtils.equals(commentValue, entity.commentValue);
        }
        return false;
    }

    @Override
    public String toString() {
        return "PYQCommentsBean{" +
                "type=" + type +
                ", commenter='" + commenter + '\'' +
                ", commenteder='" + commenteder + '\'' +
                ", commentValue='" + commentValue + '\'' +
                '}';
    }
}
